<template>
  <div id="app">
    <img src="./assets/网易云.webp" alt="" />

    <!-- 路由的出口 -->
    <!-- 路由匹配到的组件将渲染在这里 -->

    <van-tabbar route :fixed="false">
      <!-- icon="home-o" -->
      <van-tabbar-item replace to="/" >推荐音乐</van-tabbar-item>
      <!-- icon="hot-o" -->
      <van-tabbar-item replace to="/rank" >热歌榜</van-tabbar-item>
      <!-- icon="search" -->
      <van-tabbar-item replace to="/search" >搜索</van-tabbar-item>
    </van-tabbar>
    <router-view />
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
img {
  width: 300px;
  height: 150px;
}
</style>
